From: Florian Müllner Date: Thu, 25 Jul 2019 15:59:01 +0000 (+0000) Subject: barLevel: Don't reset value on overview-start changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~66 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bf36d99a335295e70f34afb41d53c27f82c4d7cf;p=gnome-shell.git barLevel: Don't reset value on overview-start changes While it makes sense to cap the current value to a new maximum value, I can't think of a good reason why changing the overdrive-start should reset the current value to that. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654 --- diff --git a/js/ui/barLevel.js b/js/ui/barLevel.js index ea295f1e8..7b3d89213 100644 --- a/js/ui/barLevel.js +++ b/js/ui/barLevel.js @@ -89,7 +89,6 @@ var BarLevel = class { `which is a number greater than the maximum allowed value ${this._maxValue}`); this._overdriveStart = value; - this._value = Math.max(Math.min(value, this._maxValue), 0); this.actor.queue_repaint(); }